=================================
|    ..    
|     : NLP = H.Alzaabi = 
|    
| http://www.almotmaiz.net
=================================

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
        ..
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
          ..         .. 
  ...     ..  .. 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    ..        ..          
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   upload     
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  includes\class_bbcode.php   :-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	function handle_bbcode_img_match($link)
	{
		$link = $this->strip_smilies(str_replace('\\"', '"', $link));

		// remove double spaces -- fixes issues with wordwrap
		$link = str_replace('  ', '', $link);

		return '<img src="' .  $link . '" border="0" alt="" />';
	}
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  :- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    // By Alzaabi - Almotmaiz.net
    function handle_bbcode_img_match($link)
    {
        $link = $this->strip_smilies(str_replace('\\"', '"', $link));
        // remove double spaces -- fixes issues with wordwrap
        $link = str_replace('  ', '', $link);
        if ($NLP = @getimagesize($link))
        {
            if($NLP[0] > 500)
            {
                $NLP_W = $NLP[0] / 2;
                $NLP_H = $NLP[1] / 2;
                return '<table width="' . $NLP_W . '" border="0" cellspacing="0" cellpadding="0"><tr><td style="border: 1px solid #ABABAB"><a href="' .  $link . '" rel="lightbox" title="    "><img src="' .  $link . '" width="' . $NLP_W . '" height="' .  $NLP_H . '" border="0" alt="     " /></a></td></tr><tr><td align=center><a href="' .  $link . '" rel="lightbox" title="    "><img border="0" src="images/NLP_button.gif"></a></td></tr></table>';
            }
            else
            {
                return '<img src="' .  $link . '" border="0" alt="" />';
            }

         }
         else
         {
             return '<img src="' .  $link . '" border="0" alt="" />';
         }
    }
    // By Alzaabi - Almotmaiz.net

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
   .. 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    ..   headinclude     
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<if condition="in_array(THIS_SCRIPT, array("newthread", "newreply", "editpost", "private", "profile"))"><else />  
<script type="text/javascript" src="clientscript/prototype.js"></script>  
<script type="text/javascript" src="clientscript/scriptaculous.js?load=effects"></script>  
<script type="text/javascript" src="clientscript/lightbox.js"></script>  
<link rel="stylesheet" href="clientscript/vbulletin_css/lightbox.css" type="text/css" media="screen" />  
</if> 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=






=================================
|    ..    
|     : NLP = H.Alzaabi = 
|    
| http://www.almotmaiz.net
=================================